<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <%layout("/WEB-INF/view/common/inc/admin_head.html",{title:'重新启动应用', styles:'bootstrap,font-awesome,animate,style'}){%>
    <style type="text/css">
        body{padding-top:10px;}
    </style>
    <%}%>
</head>
<body>
<!-- START 内容部分 -->
<div class="container">
    <a href="javascript:;" class="restart-btn btn btn-danger">
        <i class="fa fa-refresh"></i> 重新启动
    </a>
</div>
<!-- END 内容部分 -->

<%layout("/WEB-INF/view/common/inc/admin_js.html",{modules:'jquery,bootstrap'}){}%>
<script>
    var cvalidator;
    $(function(){
        //提交操作
        $('.restart-btn').on('click',function(){
            parent.layer.load();

            //数据提交
            $.post('${ctxPath}/power/container/restart.do',{},function(data){
                if( data.ok ){
                    parent.layer.msg(data.msg,{icon:1,time:2000,shade: [0.8, '#393D49']});
                }else{
                    parent.layer.msg(data.msg,{icon: 0,time:1500,shade: [0.8, '#393D49']});
                }
            });
        });
    });
</script>
</body>
</html>